<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="../../../common/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>报表导入</title>
<jsp:include page="../../../common/head.jsp">
	<jsp:param name="_useUpload" value="true"/>
	<jsp:param name="_useModal" value="true"/>
</jsp:include>
<script language="javaScript">	
	// 导出报表
	function importReport()
	{
		var fileExtAllowed = "${param.fileExtAllowed}";
		if(fileExtAllowed!=""&&fileExtAllowed!=null)
		{
			xj.extArrayAllowed = fileExtAllowed.split(",");
		}
		var objarr = new Array(
			["upload","导入文件","notEmpty",""]
		);
		if(xj.CheckAll(objarr))
		{
			if(confirm("确认导入？"))
			{
				_waitFormSubmiting();
				return true
			}
		}
		return false;
	}
</script>
	</head>
	<body>
	<form name="form1" id="reportForm"  action="importDirectReportEngine.do?_a_=a&para=${param.para}" method="post" enctype="multipart/form-data" onsubmit="return importReport()">
	<div id="body_div">
	<w:ShowTitle name="选择导入项目">
	<w:TitleButton funcName="导入" funcType="submit" urlImg="${ctx}/images/main/add.png"/>
	</w:ShowTitle>
	<div id="body_content">
	<input type="hidden" name="importServiceName" value="${param.importServiceName}"/>
	<input type="hidden" name="importFunctionName" value="${param.importFunctionName}"/>
		<table width="100%">
			<tr>
				<td width="120">
					数据页名称
				</td>
				<td class="left_align">
					<input type="text" name="sheetName" value="${param.sheetName}"/>
				</td>
			</tr>
			<c:if test="${param.templatePath ne null && param.templatePath ne '' && param.templatePath ne 'null'}">
			<tr>
				<td width="120">
					导入模板
				</td>
				<td class="left_align">
					<a href="${ctx}/${param.templatePath}" target="tempateFrame">[下载]</a>
					<iframe name="tempateFrame" width="0" height="0" frameborder="0"></iframe>
				</td>
			</tr>
			</c:if>
			<tr>
				<td>
					导入文件
				</td>
				<td>
					<w:uploadFile isList="false" isAdd="true" folder="report_import"></w:uploadFile>
				</td>
			</tr>
		</table>
	</div>
	</div>
	</form>
	</body>
</html>




